/**
 Copyright (C) 2013 Yuyao Liang

 This source code is release under the BSD License.

 This program is distributed in the hope that it will be useful, but WITHOUT
 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 FOR A PARTICULAR PURPOSE.  See the license for more details.

 Created on Dec 19, 2013 10:22:23 AM
 */
package com.googlecode.backtest.rule.simulation;

import java.util.MissingResourceException;
import java.util.ResourceBundle;

/**
 * @author lianyuy
 *
 */
public class Messages {
	private static final String BUNDLE_NAME = "com.googlecode.backtest.rule.simulation.messages"; //$NON-NLS-1$

	private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle
			.getBundle(BUNDLE_NAME);

	private Messages() {
	}

	public static String getString(String key) {
		try {
			return RESOURCE_BUNDLE.getString(key);
		} catch (MissingResourceException e) {
			return '!' + key + '!';
		}
	}
}
